
package com.feib.soeasy.dao;

import java.util.List;

import com.feib.soeasy.model.PaymentCanceledReason;
import com.feib.soeasy.pagination.PaginatedList;


/**
 * @title (#)RealAccountDao.java<br>
 * @description <br>
 * @author Karl Chen<br>
 * @version 1.0.0 2012/07/18
 */
public interface PaymentCanceledReasonDao extends HibernateDao <PaymentCanceledReason, Long> {

	/**
	 * @param paymentCanceledReason
     * @param paginationConfig
     * @return
     */
    public PaginatedList<PaymentCanceledReason> queryPaginationByPaymentCanceledReason(PaymentCanceledReason paymentCanceledReason, PaginatedList<PaymentCanceledReason> paginationConfig);
    
    /**
     * 根據賬單業者Pk查詢所屬的銷帳代碼設定資料
     * @param groupPk
     * @return
     */
    public List<PaymentCanceledReason> findAllReasonByGroupPk(Long groupPk);
    
    /**
     * 根據賬單業者Pk和銷帳代碼查詢銷帳代碼設定資料
     * @param groupPk
     * @param cancelCode
     * @return
     */
	public PaymentCanceledReason findByGroupPkAndCancelCode(Long groupPk, String cancelCode);
}
